package com.annhoa.util.tag.thymeleaf;

import java.util.LinkedHashSet;
import java.util.Set;

import org.thymeleaf.dialect.AbstractProcessorDialect;
import org.thymeleaf.processor.IProcessor;
import org.thymeleaf.standard.StandardDialect;

public class Dialect extends AbstractProcessorDialect {
 
	
 
 
	public Dialect() {
		super(ThyConst.TAGNAME1, null, StandardDialect.PROCESSOR_PRECEDENCE);
	}
 
	@Override
	public Set<IProcessor> getProcessors(String dialectPrefix) {
 
		return createStandardProcessorsSet(dialectPrefix);
	}
 
	private Set<IProcessor> createStandardProcessorsSet(String dialectPrefix) {
		LinkedHashSet<IProcessor> processors = new LinkedHashSet<>();
                //	添加自定义标签处理器，可添加多个
		processors.add(new DictMyTagProcessor (dialectPrefix));
		return processors;
	}
}